/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 头部导航栏 */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    box-shadow: none;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 5%; /* 使用百分比而非固定值 */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
    margin-left: 0; /* 移除大负外边距 */
}

.logo {
    width: 100px;
    margin-right: 10px;
}

.location {
    font-size: 18px;
    color: #fff;
    border: 3px solid #fff;
    padding: 2px 8px;
    border-radius: 100px;
}

.main-nav {
    margin-right: 0; /* 不需要单独右移，通过调整container实现 */
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 10px;
}

.main-nav a {
    font-size: 16px;
    transition: color 0.3s;
    color: #fff;
}

.main-nav a:hover {
    color: #00ae66;
}

.user-actions {
    display: flex;
    align-items: center;
    margin-right: 0; /* 移除大负外边距 */
}

.login-btn {
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.login-btn i {
    margin-right: 5px;
}

.login-btn:hover {
    color: #00ae66;
}

/* 新增的包装容器样式 */
.page-wrapper {
    margin-top: 30px; /* 将内容整体向下移动30px */
    position: relative;
}

/* 修改hero-section样式，确保背景图片位置不变 */
.hero-section {
    position: relative;
    height: 600px;
    color: #fff;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30px; /* 抵消page-wrapper的margin-top */
    left: 0;
    width: 100%;
    height: calc(100% + 30px); /* 增加高度以补偿上方的偏移 */
    background-image: url('https://s1.ljcdn.com/pegasus/redskull/images/home/images/home/bg_header@1x.jpg?v=ffcf75b4');
    background-size: cover;
    background-position: center top;
    z-index: -2;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: calc(100% + 30px);
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    position: relative;
    padding-top: 120px;
    text-align: center;
}

.small-title {
    font-size: 26px;
    font-weight: normal;
    margin-bottom: 15px;
}

.main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
}

.search-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab {
    padding: 8px 16px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
    transition: color 0.3s;
    color: #999;
}

.tab.active {
    color: #fff;
    border-bottom: 2px solid #fff;
    background-color: transparent;
}

.search-box {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-input {
    width: 500px;
    height: 50px;
    padding: 0 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 18px;
}

.map-btn {
    background-color: #fff;
    border: none;
    padding: 0 15px;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    display: flex;
    align-items: center;
}

.map-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.map-btn i {
    margin-right: 5px;
}

.search-btn {
    width: 75px;
    height: 50px;
    background-color: #0051ff;
    border: none;
    border-radius: 0 4px 4px 0;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.search-statistics {
    font-size: 16px;
    opacity: 0.8;
    height: 24px;
    overflow: hidden;
}

.statistics-container {
    position: relative;
    height: 96px; /* 四个项目的高度 */
    animation: continuousUp 15s infinite linear;
}

.statistics-item {
    height: 24px;
    line-height: 24px;
}

@keyframes continuousUp {
    0% {
        transform: translateY(0);
    }
    33% {
        transform: translateY(-24px);
    }
    66% {
        transform: translateY(-48px);
    }
    99.999% {
        transform: translateY(-72px);
    }
    100% {
        transform: translateY(0);
    }
}

/* 二手好房区域 */
.property-section {
    padding: 50px 0;
    background-color: #fff;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.section-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #999;
    font-size: 16px;
    margin-bottom: 10px;
}

.view-more-link {
    position: absolute;
    right: 0;
    top: 0;
    color: #253fff;
    font-size: 16px;
    font-weight: bold;
}

.property-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.property-card {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s;
    position: relative;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-tag {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 10;
}

.tag-image {
    width: 75px;
    height: auto;
    border-radius: 2px;
}

.property-image {
    height: 180px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-info {
    padding: 15px;
}

.property-location {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
    font-weight: normal;
}

.property-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.property-size {
    color: #999;
    font-size: 16px;
    margin-bottom: 5px;
}

.property-price {
    color: #ff5a5f;
    font-size: 20px;
    font-weight: bold;
    text-align: right;
}

/* 加粗特定元素 */
a, button, .property-name, .property-location, .section-title, .section-subtitle, 
.small-title, .main-title, .search-input, .property-size, .property-price {
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .property-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin: 10px 0;
    }

    .hero-content {
        padding-top: 80px;
    }

    .search-input {
        width: 300px;
    }

    .property-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 32px;
    }

    .search-tabs {
        flex-wrap: wrap;
    }

    .search-input {
        width: 200px;
    }

    .property-list {
        grid-template-columns: 1fr;
    }
} 